<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php if(isset($_G['title']))echo $_G['title'],'_';if($_G['settings']['subtitle'])echo $_G['settings']['subtitle'],'-'; echo $_G['settings']['sitename']?></title>
<meta name="keywords" content="<?php if(isset($_G['keywords']))echo $_G['keywords']; else echo $_G['settings']['keywords'];?>"/>
<meta name="description" content="<?php if(isset($_G['description']))echo $_G['description']; else echo $_G['settings']['description'];?>"/>
<meta name="author" content="xk41czh" />
<script type="text/javascript">
var COOKIE_PRE='<?php echo COOKIE_PRE;?>';
var COOKIE_DOMAIN='<?php echo COOKIE_DOMAIN;?>';
var COOKIE_PATH='<?php echo COOKIE_PATH;?>';
</script>
<?php $_G['scripts']=array(BASE_URL.'static/script/jquery.zclip.min.js');?>
<?php echo get_styles();?>
<?php echo get_scripts(); ?>
</head>
<body>
<div id="header">
	<div id="logo"><a href="{echo BASE_URL}">{$_G['settings']['sitename']}</a></div>
	<div id="navcats">
	<ul>
	<li class="{if $class['cate0']}current-cat{else}cat-item{/if}" ><a href="{echo BASE_URL}" >Home</a></li> 
				<?php $cates = $_G['cache']->get('category'); foreach($cates as $cate) {if($cate['status'] && !ican('view_hidden_category') )continue;if($cate['pid'] !=0)continue; if(isset($type)){if($cate['type']!=$type)continue;}elseif($cate['type'] !=0) continue;?>        
	              <li class="{if $class['cate'.$cate['cid']]}current-cat{else}cat-item{/if}"><a href="{url category.php?id=$cate[cid]}">{$cate['catename']}</a></li>    
	            <?php }?>
	</ul>
	</div>
</div>